Designer - Preferences and Project properties

Preface

LLBLGen Pro can be controlled by two types of settings: User Preferences and Project Properties. User Preferences are stored per user and control the designer and initial settings for new projects. Project Properties are settings specific for the loaded project and are stored in the project file. Once the project is created, the project properties are independent of the user preferences, so changing the user preferences has no effect on the settings in a project. This makes it possible to share project specific settings among multiple developers. LLBLGen Pro v2.5's preferences file is a different file than the previous designers use, so you can keep LLBLGen Pro v2.5, LLBLGen Pro v2.0 and LLBLGen Pro v1.0.200x.y installed side-by-side using different preferences.

note Note:
Some of the settings below discuss pluralization and singularization of names. Pluralization and Singularization takes place if a plug-in has been bound to the designer events for name pluralization and singularization. See Working with plug-ins for more details.

User Preferences

It is key to first set the User preferences prior to creating any projects, because a new project gets its initial values for several properties from the current user preferences. To access the user preferences dialog, select File -> Preferences... in the menu. Below is an example of how the dialog looks like. The values shown aren't the default values per preference. For the default value for a preference setting, please see the specific preference description below.

User preferences dialog
User preferences dialog

General settings
Catalog Refresher specific settings
Designer behavior specific settings
Miscellaneous settings
Name construction specific settings


note Note:
Some of the settings below discuss pluralization and singularization of names. Pluralization and Singularization takes place if a plug-in has been bound to the designer events for name pluralization and singularization. See Working with plug-ins for more details.

Output specific settings
Project element creation
Schema Element Retrieval specific settings
Task performers specific settings
By clicking 'Save' the user preferences are saved into the file 'preferences25.xml' in the user's own Application specific folder at: C:\Documents and Settings\current user\Application Data\LLBLGen Pro

Project Properties

A project contains its own set of properties, some receive their initial value from the user preferences, others from the New Project wizard information. To access the project properties, click with the right mouse button on the project node in the Project Explorer or select Project -> Properties... from the menu. The dialog consists of three tabs: one for the project properties, one for the project's custom properties and one for the abbreviations for the project. Custom properties are name-value pairs (name and value are both strings) which can be used in templates to generate project specific information. Abbreviations are name-value pairs which are used to resolve abbreviations in names (see below for more details on this). Below is an example of how the dialog looks like. The values shown aren't the default values per property. For the default value for a property setting, please see the specific property description below.

project properties dialog, properties tab
Project properties dialog, normal properties tab

project properties dialog, custom properties tab
Project properties dialog, custom properties tab

project properties dialog, abbreviations tab
Project properties dialog, abbreviations tab

General settings
Catalog Refresher settings
These settings are inherited from the preferences and could be used to override a preference setting with the value specified in the project: the value 'Default' specifies that the value of the same setting in the Preferences should be used, the values True and False override the setting in the Preferences with resp. True and False.
Miscellaneous settings
Name construction specific settings
Output specific settings
Project element creation
Task performers specific settings

Abbreviation conversions

LLBLGen Pro supports the automatic conversion of abbreviation fragments in names into full name fragments using abbreviation-full word pairs defined per project. You can specify these abbreviation-full word pairs in the 3rd tab of the Project Properties. For example a field called 'Addr' or fields with 'Addr' in the name can be updated with 'Addr' being replaced with 'Address' so CustAddr will then become CustAddress, and if 'Cust' is also added to the abbreviations to become Customer, it will convert CustAddr into CustomerAddress. Abbreviations are stored inside the project file so everyone using the same .lgp file has the same abbreviations. They're not regular expressions, but simple Abbreviation - FullWord pairs. They're matched with fragments found during name processing. Fragments are elements separated by non-usable characters, space, underscore, a full word, or where an Uppercase/Lowercase change appears. So the string AaBb_CCC Ddd has 4 fragments: Aa, Bb, CCC and Ddd.

The following rules apply:

It's also possible to export/import abbreviations to/from textfiles. These textfiles should have at each line the abbreviation and the full word separated by a TAB so example: addrTABAddressCRLF

You can import/export the abbreviations on the Abbreviations tab in the Project Properties.

LLBLGen Pro v2.6 documentation. ©2002-2008 Solutions Design